import request from '@/utils/request'

// 分类列表
export function class_queryPage(data) {
  return request({
    url: '/class-zone/queryPage',
    method: 'post',
    data: data
  })
}

// 删除分类
export function class_delete(id) {
  return request({
    url: '/class-zone/delete/' + id,
    method: 'delete',
  })
}

// 新增分类
export function class_insert(data) {
  return request({
    url: '/class-zone/insert',
    method: 'post',
    data: data
  })
}

// 编辑分类
export function class_update(data) {
  return request({
    url: '/class-zone/update',
    method: 'post',
    data: data
  })
}